Skip to content

feat: add agent status to tray app#21

Merged
deansheather merged 5 commits intomainfrom
dean/agent-status
Feb 12, 2025
Merged

feat: add agent status to tray app#21
deansheather merged 5 commits intomainfrom
dean/agent-status

Conversation

@deansheather
Copy link
Copy Markdown
Member

  • Adds agent and stopped workspace statuses to the tray app
  • The Vpn.Service.Manager now tracks the current list of workspaces and agents from the tunnel
  • Deletes remnants of the old Package
  • Moves App to be completely unpackaged

Closes #5

- Adds agent and stopped workspace statuses to the tray app
- The Vpn.Service.Manager now tracks the current list of workspaces and
  agents from the tunnel
- Deletes remnants of the old Package
- Moves App to be completely unpackaged
Comment thread App/Services/RpcController.cs Outdated
Comment thread Vpn.Proto/vpn.proto Outdated
Comment thread Vpn.Proto/vpn.proto Outdated

private void UpdateFromRpcModel(RpcModel rpcModel)
{
// Ensure we're on the UI thread.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems backward to me that the view model needs to understand the thread the view runs on to not break shit, and it seems I'm not the only one. microsoft/microsoft-ui-xaml#2795

But, this is apparently what needs to be done. No changes here, I'm just grumpy.

});
}

// For every workspace that doesn't have an agent, add a dummy agent.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shouldn't create dummy agents --- the VPN should be giving us the full agent information. Maybe just log that we got a workspace that appeared not to have any agents?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stopped workspaces fall into this category. We want them to appear as grayed out "agents", but stopped workspaces don't have any agents.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alternative way would be to render workspaces with no agents separately in the UI, but this results in us having to duplicate a bunch of XAML for rendering which is worse

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to create grayed out view models for stopped workspaces, but

a) let's check that they are actually stopped, stopping etc -- we get this over the protocol
b) can you make the comment reflect what we are doing -- maybe call them stopped instead of dummy.

I think we need to have a larger design session about how to present this information in a clear way. Our UX is very much conflating workspaces and agents right now, and I'm concerned it's going to get confusing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I didn't see this comment before merge, I'll fix this in my next PR.

@deansheather
Copy link
Copy Markdown
Member Author

I'll fix build soon

@deansheather deansheather merged commit c2791f5 into main Feb 12, 2025
@deansheather deansheather deleted the dean/agent-status branch February 12, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build the tray menu

2 participants